package cn.xin.system.mapper;

import cn.xin.org.vo.EmpAndRoleVo;
import cn.xin.system.domain.Role;
import cn.xin.base.mapper.BaseMapper;
import cn.xin.system.vo.RoleAndMenuVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xin
 * @since 2023-01-03
 */
public interface RoleMapper extends BaseMapper<Role> {



    List<RoleAndMenuVo> findByRoleIdList(List<Long> menuIdList);

    void addEmpRole(@Param("empId") Long id,@Param("roles") List<Long> roles);

    void deleteByEmpId(Long id);

    List<EmpAndRoleVo> findByEmpIds(List<Long> empIdList);
}
